﻿using System.Diagnostics;
using QuickGraph;
using XmlStudio.ViewModel.Node;

namespace XmlStudio.GraphSharp {
    [DebuggerDisplay("Id = {Id}: {Source.Node.Name} -> {Target.Node.Name}")]
    public class XmlNodeEdge : Edge<XmlNodeViewModel> {
        public string Id {
            get;
            private set;
        }

        public XmlNodeEdge(string id, XmlNodeViewModel source, XmlNodeViewModel target)
            : base(source, target) {
            this.Id = id;
        }

        public override string ToString() {
            return string.Format("Id = {0}, {1} -> {2}", Id, Source, Target);
        }
    }
}
